#!/bin/sh
source /etc/profile

echo "start game logic server server begin!"

nohup java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9878 -Djava.rmi.server.hostname=0.0.0.0 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1908 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Xms256M -Xmx512M -verbose:gc -Xloggc:/game/logs/logic-server-gc.log -XX:+PrintGCDetails -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/game/dump/logic-server.dat  -Djava.security.egd=file:/dev/./urandom -jar /game/game-logic-server.jar >/game/logs/logic-server.log 2>&1 &

echo "start game logic server success!"